Skip to content

[E2E][JF] Implemented JCM mDNS advertisement #38994

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vijs
Copy link
Collaborator

@vijs vijs commented May 15, 2025

Implemented JCM mDNS advertisement
Addresses #38544 & #39101

Testing

Verified using the below instructions

$ gn gen --check out/host/ --args='chip_device_config_enable_joint_fabric=true'
$ ninja -C out/host/ src/lib/dnssd/tests:tests_run

Copy link

PR #38994: Size comparison from a647c1b to e3237c4

Full report (1 build for stm32)
platform target config section a647c1b e3237c4 change % change
stm32 light STM32WB5MM-DK FLASH 465132 465328 196 0.0
RAM 141488 141608 120 0.1

Copy link
Contributor

@andy31415 andy31415 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the testing summary to contain commands tested and observed results. Verified using docs/guides/joint_fabric_guide.md instructions. seems to try to make it conventient to say manually tested.

However the whole intent of our policy is to make it inconvenient to just say "manually tested" to (strongly!) encourage writing automated tests. So in this case:

  • write details on how you tested (generally what app you built, chip-tool or repl commands run and what were the observed results)
  • explain why automated testing is impossible or what the schedule for adding automated tests is

@vijs vijs force-pushed the feature/38544 branch from e3237c4 to 7d65b8f Compare May 16, 2025 15:31
@vijs vijs changed the title [E2E][JF] Implemented JCM mDNS advertisement [E2E][JF] Implemented JCM mDNS advertisement and OJCW May 16, 2025
Copy link

github-actions bot commented May 16, 2025

PR #38994: Size comparison from 386263d to 7d65b8f

Increases above 0.2%:

platform target config section 386263d 7d65b8f change % change
nxp contact mcxw71+release RAM 63268 63412 144 0.2
lock mcxw71+release RAM 67692 67836 144 0.2
Full report (54 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 386263d 7d65b8f change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1103246 1103686 440 0.0
RAM 179082 179082 0 0.0
bl702 lighting-app bl702+eth FLASH 656476 656912 436 0.1
RAM 135041 135041 0 0.0
bl702+wifi FLASH 833986 834422 436 0.1
RAM 124597 124597 0 0.0
bl706+mfd+rpc+littlefs FLASH 1066526 1066736 210 0.0
RAM 117429 117589 160 0.1
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 895462 895672 210 0.0
RAM 105732 105892 160 0.2
lighting-app bl702l+mfd+littlefs FLASH 979550 979760 210 0.0
RAM 109932 110092 160 0.1
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 821700 821960 260 0.0
RAM 120296 120432 136 0.1
lock-ftd LP_EM_CC1354P10_6 FLASH 831560 831820 260 0.0
RAM 125448 125584 136 0.1
pump-app LP_EM_CC1354P10_6 FLASH 779120 779412 292 0.0
RAM 113844 113980 136 0.1
pump-controller-app LP_EM_CC1354P10_6 FLASH 763332 763616 284 0.0
RAM 114060 114196 136 0.1
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 549574 550086 512 0.1
RAM 205264 205264 0 0.0
lock CC3235SF_LAUNCHXL FLASH 580982 581502 520 0.1
RAM 205456 205456 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 662829 663141 312 0.0
RAM 77308 77444 136 0.2
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 682681 682993 312 0.0
RAM 79948 80084 136 0.2
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 682681 682993 312 0.0
RAM 79948 80084 136 0.2
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 639613 639933 320 0.1
RAM 72376 72512 136 0.2
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 623981 624309 328 0.1
RAM 73604 73740 136 0.2
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 643609 643945 336 0.1
RAM 76156 76292 136 0.2
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 643609 643945 336 0.1
RAM 76156 76292 136 0.2
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 643325 643661 336 0.1
RAM 76604 76740 136 0.2
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 663041 663369 328 0.0
RAM 79156 79292 136 0.2
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 663041 663369 328 0.0
RAM 79156 79292 136 0.2
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 619505 619825 320 0.1
RAM 70708 70844 136 0.2
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 639357 639669 312 0.0
RAM 73340 73476 136 0.2
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 639357 639669 312 0.0
RAM 73340 73476 136 0.2
efr32 lock-app BRD4187C FLASH 946084 946260 176 0.0
RAM 132096 132224 128 0.1
BRD4338a FLASH 772912 773548 636 0.1
RAM 173320 173320 0 0.0
window-app BRD4187C FLASH 1038736 1039112 376 0.0
RAM 128232 128360 128 0.1
esp32 all-clusters-app c3devkit DRAM 103408 103408 0 0.0
FLASH 1808016 1808514 498 0.0
IRAM 83846 83846 0 0.0
m5stack DRAM 122028 122028 0 0.0
FLASH 1774094 1774678 584 0.0
IRAM 117043 117043 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 921508 921804 296 0.0
RAM 167398 167518 120 0.1
nrf7002dk_nrf5340_cpuapp FLASH 913232 913548 316 0.0
RAM 145642 145642 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 858616 858904 288 0.0
RAM 141161 141281 120 0.1
nxp contact k32w0+release FLASH 592880 593040 160 0.0
RAM 72928 73072 144 0.2
mcxw71+release FLASH 625752 626056 304 0.0
RAM 63268 63412 144 0.2
light k32w0+release FLASH 619020 619196 176 0.0
RAM 72224 72368 144 0.2
k32w1+release FLASH 710480 710768 288 0.0
RAM 72116 72260 144 0.2
lock mcxw71+release FLASH 775560 775864 304 0.0
RAM 67692 67836 144 0.2
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1669172 1669812 640 0.0
RAM 212408 212408 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1573284 1573916 632 0.0
RAM 208592 208592 0 0.0
light cy8ckit_062s2_43012 FLASH 1447468 1448116 648 0.0
RAM 197296 197296 0 0.0
lock cy8ckit_062s2_43012 FLASH 1477364 1477996 632 0.0
RAM 225016 225016 0 0.0
qpg lighting-app qpg6105+debug FLASH 668252 668452 200 0.0
RAM 105244 105380 136 0.1
lock-app qpg6105+debug FLASH 626448 626640 192 0.0
RAM 99872 100008 136 0.1
stm32 light STM32WB5MM-DK FLASH 465940 466120 180 0.0
RAM 141496 141616 120 0.1
telink bridge-app tl7218x FLASH 694572 694736 164 0.0
RAM 101908 102028 120 0.1
light-app-ota-compress-lzma-factory-data tl3218x FLASH 774282 774446 164 0.0
RAM 50060 50180 120 0.2
light-app-ota-shell-factory-data tl7218x FLASH 781388 781548 160 0.0
RAM 109232 109352 120 0.1
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 703534 703698 164 0.0
RAM 62624 62744 120 0.2
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 741488 741648 160 0.0
RAM 85796 85916 120 0.1
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 607710 608038 328 0.1
RAM 119448 119448 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 816698 816866 168 0.0
RAM 107500 107620 120 0.1
tizen all-clusters-app arm unknown 5224 5224 0 0.0
FLASH 1822336 1823348 1012 0.1
RAM 95164 95188 24 0.0
chip-tool-ubsan arm unknown 20600 20632 32 0.2
FLASH 20893358 20907630 14272 0.1
RAM 9083856 9090036 6180 0.1

@doru91
Copy link
Contributor

doru91 commented May 19, 2025

General comment: I would say that this PR implements a subset of #38203 - the OJCW command.

#38203 text also requires handling of some errors paths, so I would advise creating a separate sub-issue (see the "Create sub-issue" button) if those are scheduled for a follow up PR.

What I would like to see in the testing section or added in the docs/guides/joint_fabric.md would be to show that JF=14 is advertised immediately after jf-admin-app is commissioned by jf-control-app.

Copy link
Contributor

@robertfarnum robertfarnum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency let's use --jcm true as the flag on the command line for pairing commands.

@vijs vijs force-pushed the feature/38544 branch from 7d65b8f to 4378967 Compare May 19, 2025 19:42
Copy link

github-actions bot commented May 19, 2025

PR #38994: Size comparison from bb6d92f to 4378967

Increases above 0.2%:

platform target config section bb6d92f 4378967 change % change
nxp contact mcxw71+release RAM 63268 63412 144 0.2
lock mcxw71+release RAM 67692 67836 144 0.2
Full report (54 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section bb6d92f 4378967 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1103246 1103686 440 0.0
RAM 179082 179082 0 0.0
bl702 lighting-app bl702+eth FLASH 656476 656912 436 0.1
RAM 135041 135041 0 0.0
bl702+wifi FLASH 833986 834422 436 0.1
RAM 124597 124597 0 0.0
bl706+mfd+rpc+littlefs FLASH 1066526 1066736 210 0.0
RAM 117429 117589 160 0.1
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 895462 895672 210 0.0
RAM 105732 105892 160 0.2
lighting-app bl702l+mfd+littlefs FLASH 979550 979760 210 0.0
RAM 109932 110092 160 0.1
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 821700 821960 260 0.0
RAM 120296 120432 136 0.1
lock-ftd LP_EM_CC1354P10_6 FLASH 831560 831820 260 0.0
RAM 125448 125584 136 0.1
pump-app LP_EM_CC1354P10_6 FLASH 779120 779412 292 0.0
RAM 113844 113980 136 0.1
pump-controller-app LP_EM_CC1354P10_6 FLASH 763332 763616 284 0.0
RAM 114060 114196 136 0.1
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 549574 550086 512 0.1
RAM 205264 205264 0 0.0
lock CC3235SF_LAUNCHXL FLASH 580982 581502 520 0.1
RAM 205456 205456 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 662829 663141 312 0.0
RAM 77308 77444 136 0.2
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 682681 682993 312 0.0
RAM 79948 80084 136 0.2
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 682681 682993 312 0.0
RAM 79948 80084 136 0.2
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 639613 639933 320 0.1
RAM 72376 72512 136 0.2
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 623981 624309 328 0.1
RAM 73604 73740 136 0.2
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 643609 643945 336 0.1
RAM 76156 76292 136 0.2
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 643609 643945 336 0.1
RAM 76156 76292 136 0.2
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 643325 643661 336 0.1
RAM 76604 76740 136 0.2
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 663041 663369 328 0.0
RAM 79156 79292 136 0.2
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 663041 663369 328 0.0
RAM 79156 79292 136 0.2
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 619505 619825 320 0.1
RAM 70708 70844 136 0.2
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 639357 639669 312 0.0
RAM 73340 73476 136 0.2
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 639357 639669 312 0.0
RAM 73340 73476 136 0.2
efr32 lock-app BRD4187C FLASH 946084 946260 176 0.0
RAM 132096 132224 128 0.1
BRD4338a FLASH 772912 773548 636 0.1
RAM 173320 173320 0 0.0
window-app BRD4187C FLASH 1038736 1039112 376 0.0
RAM 128232 128360 128 0.1
esp32 all-clusters-app c3devkit DRAM 103408 103408 0 0.0
FLASH 1809664 1810166 502 0.0
IRAM 83846 83846 0 0.0
m5stack DRAM 122028 122028 0 0.0
FLASH 1775586 1776194 608 0.0
IRAM 117043 117043 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 921508 921804 296 0.0
RAM 167398 167518 120 0.1
nrf7002dk_nrf5340_cpuapp FLASH 913256 913572 316 0.0
RAM 145642 145642 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 858616 858904 288 0.0
RAM 141161 141281 120 0.1
nxp contact k32w0+release FLASH 592880 593040 160 0.0
RAM 72928 73072 144 0.2
mcxw71+release FLASH 625752 626056 304 0.0
RAM 63268 63412 144 0.2
light k32w0+release FLASH 619020 619196 176 0.0
RAM 72224 72368 144 0.2
k32w1+release FLASH 710480 710768 288 0.0
RAM 72116 72260 144 0.2
lock mcxw71+release FLASH 775560 775864 304 0.0
RAM 67692 67836 144 0.2
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1669172 1669812 640 0.0
RAM 212408 212408 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1573284 1573916 632 0.0
RAM 208592 208592 0 0.0
light cy8ckit_062s2_43012 FLASH 1447468 1448116 648 0.0
RAM 197296 197296 0 0.0
lock cy8ckit_062s2_43012 FLASH 1477364 1477996 632 0.0
RAM 225016 225016 0 0.0
qpg lighting-app qpg6105+debug FLASH 668252 668452 200 0.0
RAM 105244 105380 136 0.1
lock-app qpg6105+debug FLASH 626448 626640 192 0.0
RAM 99872 100008 136 0.1
stm32 light STM32WB5MM-DK FLASH 465940 466120 180 0.0
RAM 141496 141616 120 0.1
telink bridge-app tl7218x FLASH 694572 694736 164 0.0
RAM 101908 102028 120 0.1
light-app-ota-compress-lzma-factory-data tl3218x FLASH 774282 774446 164 0.0
RAM 50060 50180 120 0.2
light-app-ota-shell-factory-data tl7218x FLASH 781388 781548 160 0.0
RAM 109232 109352 120 0.1
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 703534 703698 164 0.0
RAM 62624 62744 120 0.2
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 741488 741648 160 0.0
RAM 85796 85916 120 0.1
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 607710 608038 328 0.1
RAM 119448 119448 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 816698 816866 168 0.0
RAM 107500 107620 120 0.1
tizen all-clusters-app arm unknown 5224 5224 0 0.0
FLASH 1822424 1823432 1008 0.1
RAM 95164 95188 24 0.0
chip-tool-ubsan arm unknown 20612 20644 32 0.2
FLASH 20922062 20936302 14240 0.1
RAM 9096248 9102428 6180 0.1

@vijs vijs force-pushed the feature/38544 branch 2 times, most recently from df9e098 to 1e18994 Compare May 21, 2025 10:06
@doru91 doru91 linked an issue May 21, 2025 that may be closed by this pull request
@doru91
Copy link
Contributor

doru91 commented May 21, 2025

General comment: I would say that this PR implements a subset of #38203 - the OJCW command.

#38203 text also requires handling of some errors paths, so I would advise creating a separate sub-issue (see the "Create sub-issue" button) if those are scheduled for a follow up PR.

What I would like to see in the testing section or added in the docs/guides/joint_fabric.md would be to show that JF=14 is advertised immediately after jf-admin-app is commissioned by jf-control-app.

You asked me to review this PR saying that all the comments have been addressed. However, most of the comments haven't been addressed.

@vijs vijs force-pushed the feature/38544 branch from 1e18994 to d38175b Compare May 21, 2025 20:24
Copy link

PR #38994: Size comparison from 08eb175 to d38175b

Full report (2 builds for cc32xx)
platform target config section 08eb175 d38175b change % change
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 549798 550466 668 0.1
RAM 205264 205256 -8 -0.0
lock CC3235SF_LAUNCHXL FLASH 581630 582314 684 0.1
RAM 205448 205440 -8 -0.0

@vijs vijs force-pushed the feature/38544 branch from 0376bd9 to 5bc0c49 Compare May 29, 2025 14:57
@mergify mergify bot removed the conflict label May 29, 2025
Copy link

github-actions bot commented May 29, 2025

PR #38994: Size comparison from f881f51 to 5bc0c49

Full report (75 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section f881f51 5bc0c49 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1102344 1102340 -4 -0.0
RAM 179114 179106 -8 -0.0
bl702 lighting-app bl702+eth FLASH 655436 655432 -4 -0.0
RAM 135073 135073 0 0.0
bl702+wifi FLASH 832950 832946 -4 -0.0
RAM 124637 124621 -16 -0.0
bl706+mfd+rpc+littlefs FLASH 1065500 1065496 -4 -0.0
RAM 117461 117445 -16 -0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 895058 895054 -4 -0.0
RAM 105772 105772 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 978780 978776 -4 -0.0
RAM 109956 109940 -16 -0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 820580 820572 -8 -0.0
RAM 120288 120280 -8 -0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 832184 832176 -8 -0.0
RAM 125440 125432 -8 -0.0
pump-app LP_EM_CC1354P10_6 FLASH 777704 777696 -8 -0.0
RAM 113844 113836 -8 -0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 762036 762012 -24 -0.0
RAM 114052 114044 -8 -0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 548278 548286 8 0.0
RAM 205256 205248 -8 -0.0
lock CC3235SF_LAUNCHXL FLASH 581726 581734 8 0.0
RAM 205448 205440 -8 -0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 662509 662509 0 0.0
RAM 77552 77544 -8 -0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 682361 682345 -16 -0.0
RAM 80192 80184 -8 -0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 682361 682345 -16 -0.0
RAM 80192 80184 -8 -0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 639293 639285 -8 -0.0
RAM 72620 72612 -8 -0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 623909 623893 -16 -0.0
RAM 73864 73856 -8 -0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 643537 643521 -16 -0.0
RAM 76416 76408 -8 -0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 643537 643521 -16 -0.0
RAM 76416 76408 -8 -0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 644837 644829 -8 -0.0
RAM 76864 76856 -8 -0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 664545 664529 -16 -0.0
RAM 79416 79408 -8 -0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 664545 664529 -16 -0.0
RAM 79416 79408 -8 -0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 619489 619473 -16 -0.0
RAM 70976 70968 -8 -0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 639341 639333 -8 -0.0
RAM 73608 73600 -8 -0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 639341 639333 -8 -0.0
RAM 73608 73600 -8 -0.0
efr32 lock-app BRD4187C FLASH 946860 946828 -32 -0.0
RAM 132092 132092 0 0.0
BRD4338a FLASH 776184 776184 0 0.0
RAM 173320 173312 -8 -0.0
window-app BRD4187C FLASH 1039848 1039840 -8 -0.0
RAM 128228 128228 0 0.0
esp32 all-clusters-app c3devkit DRAM 103624 103616 -8 -0.0
FLASH 1810204 1810200 -4 -0.0
IRAM 83846 83846 0 0.0
m5stack DRAM 122492 122484 -8 -0.0
FLASH 1776170 1776166 -4 -0.0
IRAM 117043 117043 0 0.0
linux air-purifier-app debug unknown 4848 4848 0 0.0
FLASH 2788566 2788558 -8 -0.0
RAM 117112 117112 0 0.0
all-clusters-app debug unknown 5664 5664 0 0.0
FLASH 6387360 6387352 -8 -0.0
RAM 537632 537632 0 0.0
all-clusters-minimal-app debug unknown 5528 5528 0 0.0
FLASH 5470390 5470382 -8 -0.0
RAM 228072 228072 0 0.0
bridge-app debug unknown 5560 5560 0 0.0
FLASH 4802900 4802892 -8 -0.0
RAM 207728 207728 0 0.0
camera-app debug unknown 8864 8864 0 0.0
FLASH 6912315 6912315 0 0.0
RAM 228984 228984 0 0.0
camera-controller debug unknown 9168 9168 0 0.0
FLASH 14263291 14263291 0 0.0
RAM 657224 657224 0 0.0
chip-tool debug unknown 6248 6248 0 0.0
FLASH 14726047 14725845 -202 -0.0
RAM 661872 661840 -32 -0.0
chip-tool-ipv6only arm64 unknown 41024 41024 0 0.0
FLASH 12685992 12685832 -160 -0.0
RAM 708192 708192 0 0.0
fabric-admin debug unknown 5928 5928 0 0.0
FLASH 12805285 12805083 -202 -0.0
RAM 661232 661200 -32 -0.0
fabric-bridge-app debug unknown 4808 4808 0 0.0
FLASH 4588748 4588740 -8 -0.0
RAM 193408 193408 0 0.0
fabric-sync debug unknown 5064 5064 0 0.0
FLASH 5735861 5735877 16 0.0
RAM 490080 490080 0 0.0
lighting-app debug+rpc+ui unknown 6272 6272 0 0.0
FLASH 5651137 5651121 -16 -0.0
RAM 209864 209864 0 0.0
lock-app debug unknown 5496 5496 0 0.0
FLASH 4837352 4837344 -8 -0.0
RAM 197192 197192 0 0.0
ota-provider-app debug unknown 4848 4848 0 0.0
FLASH 4440674 4440666 -8 -0.0
RAM 186064 186064 0 0.0
ota-requestor-app debug unknown 4728 4728 0 0.0
FLASH 4510112 4510104 -8 -0.0
RAM 188696 188696 0 0.0
shell debug unknown 4256 4256 0 0.0
FLASH 3085036 3085020 -16 -0.0
RAM 151176 151176 0 0.0
thermostat-no-ble arm64 unknown 9768 9768 0 0.0
FLASH 4237624 4237624 0 0.0
RAM 233528 233512 -16 -0.0
tv-app debug unknown 5832 5832 0 0.0
FLASH 6100789 6100789 0 0.0
RAM 614312 614312 0 0.0
tv-casting-app debug unknown 5336 5336 0 0.0
FLASH 12787725 12787725 0 0.0
RAM 767216 767184 -32 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 921916 921908 -8 -0.0
RAM 167532 167524 -8 -0.0
nrf7002dk_nrf5340_cpuapp FLASH 913132 913120 -12 -0.0
RAM 145776 145768 -8 -0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 859092 859084 -8 -0.0
RAM 141159 141151 -8 -0.0
nxp contact k32w0+release FLASH 592296 592264 -32 -0.0
RAM 72920 72912 -8 -0.0
mcxw71+release FLASH 625080 625072 -8 -0.0
RAM 63260 63252 -8 -0.0
light k32w0+release FLASH 618372 618372 0 0.0
RAM 72216 72208 -8 -0.0
k32w1+release FLASH 709608 709592 -16 -0.0
RAM 72116 72108 -8 -0.0
lock mcxw71+release FLASH 776248 776232 -16 -0.0
RAM 67676 67668 -8 -0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1671716 1671716 0 0.0
RAM 212528 212520 -8 -0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1576052 1576052 0 0.0
RAM 208576 208568 -8 -0.0
light cy8ckit_062s2_43012 FLASH 1448500 1448500 0 0.0
RAM 197304 197296 -8 -0.0
lock cy8ckit_062s2_43012 FLASH 1480780 1480780 0 0.0
RAM 225016 225008 -8 -0.0
qpg lighting-app qpg6105+debug FLASH 667316 667308 -8 -0.0
RAM 105244 105236 -8 -0.0
lock-app qpg6105+debug FLASH 627336 627320 -16 -0.0
RAM 99872 99864 -8 -0.0
stm32 light STM32WB5MM-DK FLASH 465044 465040 -4 -0.0
RAM 141488 141480 -8 -0.0
telink bridge-app tl7218x FLASH 677502 677498 -4 -0.0
694258 694254 -4 -0.0
RAM 91024 91016 -8 -0.0
102164 102156 -8 -0.0
light-app-ota-compress-lzma-factory-data tl3218x FLASH 766692 766688 -4 -0.0
RAM 50316 50308 -8 -0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 767724 767720 -4 -0.0
RAM 40608 40600 -8 -0.0
light-app-ota-shell-factory-data tl7218x FLASH 756180 756176 -4 -0.0
773802 773798 -4 -0.0
RAM 97736 97728 -8 -0.0
109488 109480 -8 -0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 687254 687250 -4 -0.0
703152 703148 -4 -0.0
RAM 51844 51836 -8 -0.0
62876 62868 -8 -0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 715704 715700 -4 -0.0
741106 741102 -4 -0.0
RAM 73656 73648 -8 -0.0
86048 86040 -8 -0.0
light-switch-app-ota-shell-factory-data tl3218x_retention FLASH 713044 713040 -4 -0.0
RAM 37292 37284 -8 -0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 604530 604526 -4 -0.0
600662 600658 -4 -0.0
RAM 106984 106976 -8 -0.0
120260 120252 -8 -0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 791224 791224 0 0.0
809116 809116 0 0.0
RAM 96584 96576 -8 -0.0
107756 107748 -8 -0.0
tizen all-clusters-app arm unknown 5292 5292 0 0.0
FLASH 1821492 1821488 -4 -0.0
RAM 97224 97216 -8 -0.0
chip-tool-ubsan arm unknown 20804 20804 0 0.0
FLASH 21044230 21043998 -232 -0.0
RAM 9170912 9170840 -72 -0.0

@vijs vijs force-pushed the feature/38544 branch from 5bc0c49 to ccfdc6d Compare May 30, 2025 02:39
Copy link

github-actions bot commented May 30, 2025

PR #38994: Size comparison from 0a18b85 to ccfdc6d

Full report (75 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 0a18b85 ccfdc6d change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1102358 1102354 -4 -0.0
RAM 179122 179114 -8 -0.0
bl702 lighting-app bl702+eth FLASH 655440 655436 -4 -0.0
RAM 135073 135073 0 0.0
bl702+wifi FLASH 832954 832950 -4 -0.0
RAM 124637 124621 -16 -0.0
bl706+mfd+rpc+littlefs FLASH 1065514 1065510 -4 -0.0
RAM 117469 117453 -16 -0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 895062 895058 -4 -0.0
RAM 105772 105772 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 978784 978780 -4 -0.0
RAM 109956 109940 -16 -0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 820580 820572 -8 -0.0
RAM 120288 120280 -8 -0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 832184 832176 -8 -0.0
RAM 125440 125432 -8 -0.0
pump-app LP_EM_CC1354P10_6 FLASH 777704 777696 -8 -0.0
RAM 113844 113836 -8 -0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 762036 762012 -24 -0.0
RAM 114052 114044 -8 -0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 548278 548286 8 0.0
RAM 205256 205248 -8 -0.0
lock CC3235SF_LAUNCHXL FLASH 581726 581718 -8 -0.0
RAM 205448 205440 -8 -0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 662509 662509 0 0.0
RAM 77552 77544 -8 -0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 682361 682345 -16 -0.0
RAM 80192 80184 -8 -0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 682361 682345 -16 -0.0
RAM 80192 80184 -8 -0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 639293 639285 -8 -0.0
RAM 72620 72612 -8 -0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 623909 623893 -16 -0.0
RAM 73864 73856 -8 -0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 643537 643521 -16 -0.0
RAM 76416 76408 -8 -0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 643537 643521 -16 -0.0
RAM 76416 76408 -8 -0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 644829 644821 -8 -0.0
RAM 76864 76856 -8 -0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 664537 664521 -16 -0.0
RAM 79416 79408 -8 -0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 664537 664521 -16 -0.0
RAM 79416 79408 -8 -0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 619489 619473 -16 -0.0
RAM 70976 70968 -8 -0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 639341 639333 -8 -0.0
RAM 73608 73600 -8 -0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 639341 639333 -8 -0.0
RAM 73608 73600 -8 -0.0
efr32 lock-app BRD4187C FLASH 946892 946860 -32 -0.0
RAM 132100 132100 0 0.0
BRD4338a FLASH 776200 776184 -16 -0.0
RAM 173320 173312 -8 -0.0
window-app BRD4187C FLASH 1039848 1039840 -8 -0.0
RAM 128228 128228 0 0.0
esp32 all-clusters-app c3devkit DRAM 103624 103616 -8 -0.0
FLASH 1810208 1810204 -4 -0.0
IRAM 83846 83846 0 0.0
m5stack DRAM 122492 122484 -8 -0.0
FLASH 1776190 1776186 -4 -0.0
IRAM 117043 117043 0 0.0
linux air-purifier-app debug unknown 4848 4848 0 0.0
FLASH 2788566 2788558 -8 -0.0
RAM 117112 117112 0 0.0
all-clusters-app debug unknown 5664 5664 0 0.0
FLASH 6387360 6387352 -8 -0.0
RAM 537664 537664 0 0.0
all-clusters-minimal-app debug unknown 5528 5528 0 0.0
FLASH 5470390 5470382 -8 -0.0
RAM 228072 228072 0 0.0
bridge-app debug unknown 5560 5560 0 0.0
FLASH 4802900 4802892 -8 -0.0
RAM 207728 207728 0 0.0
camera-app debug unknown 8864 8864 0 0.0
FLASH 6912315 6912315 0 0.0
RAM 228984 228984 0 0.0
camera-controller debug unknown 9168 9168 0 0.0
FLASH 14264891 14264891 0 0.0
RAM 657256 657256 0 0.0
chip-tool debug unknown 6248 6248 0 0.0
FLASH 14727227 14727025 -202 -0.0
RAM 661904 661872 -32 -0.0
chip-tool-ipv6only arm64 unknown 41024 41024 0 0.0
FLASH 12685268 12685108 -160 -0.0
RAM 708224 708224 0 0.0
fabric-admin debug unknown 5928 5928 0 0.0
FLASH 12805965 12805763 -202 -0.0
RAM 661328 661296 -32 -0.0
fabric-bridge-app debug unknown 4808 4808 0 0.0
FLASH 4588804 4588796 -8 -0.0
RAM 193440 193440 0 0.0
fabric-sync debug unknown 5064 5064 0 0.0
FLASH 5735861 5735877 16 0.0
RAM 490112 490112 0 0.0
lighting-app debug+rpc+ui unknown 6272 6272 0 0.0
FLASH 5651985 5651969 -16 -0.0
RAM 209960 209960 0 0.0
lock-app debug unknown 5496 5496 0 0.0
FLASH 4837372 4837364 -8 -0.0
RAM 197192 197192 0 0.0
ota-provider-app debug unknown 4848 4848 0 0.0
FLASH 4440674 4440666 -8 -0.0
RAM 186064 186064 0 0.0
ota-requestor-app debug unknown 4728 4728 0 0.0
FLASH 4510112 4510104 -8 -0.0
RAM 188696 188696 0 0.0
shell debug unknown 4256 4256 0 0.0
FLASH 3085036 3085020 -16 -0.0
RAM 151176 151176 0 0.0
thermostat-no-ble arm64 unknown 9768 9768 0 0.0
FLASH 4236076 4236076 0 0.0
RAM 233528 233512 -16 -0.0
tv-app debug unknown 5832 5832 0 0.0
FLASH 6100789 6100789 0 0.0
RAM 614344 614344 0 0.0
tv-casting-app debug unknown 5336 5336 0 0.0
FLASH 12788909 12788893 -16 -0.0
RAM 767248 767216 -32 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 921916 921908 -8 -0.0
RAM 167532 167524 -8 -0.0
nrf7002dk_nrf5340_cpuapp FLASH 913132 913120 -12 -0.0
RAM 145776 145768 -8 -0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 859092 859084 -8 -0.0
RAM 141159 141151 -8 -0.0
nxp contact k32w0+release FLASH 592296 592264 -32 -0.0
RAM 72920 72912 -8 -0.0
mcxw71+release FLASH 625080 625072 -8 -0.0
RAM 63260 63252 -8 -0.0
light k32w0+release FLASH 618372 618372 0 0.0
RAM 72216 72208 -8 -0.0
k32w1+release FLASH 709608 709592 -16 -0.0
RAM 72116 72108 -8 -0.0
lock mcxw71+release FLASH 776248 776240 -8 -0.0
RAM 67676 67668 -8 -0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1671716 1671716 0 0.0
RAM 212528 212520 -8 -0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1576052 1576052 0 0.0
RAM 208576 208568 -8 -0.0
light cy8ckit_062s2_43012 FLASH 1448500 1448500 0 0.0
RAM 197304 197296 -8 -0.0
lock cy8ckit_062s2_43012 FLASH 1480780 1480780 0 0.0
RAM 225016 225008 -8 -0.0
qpg lighting-app qpg6105+debug FLASH 667316 667308 -8 -0.0
RAM 105244 105236 -8 -0.0
lock-app qpg6105+debug FLASH 627336 627320 -16 -0.0
RAM 99872 99864 -8 -0.0
stm32 light STM32WB5MM-DK FLASH 465044 465040 -4 -0.0
RAM 141488 141480 -8 -0.0
telink bridge-app tl7218x FLASH 677506 677502 -4 -0.0
694262 694258 -4 -0.0
RAM 91024 91016 -8 -0.0
102164 102156 -8 -0.0
light-app-ota-compress-lzma-factory-data tl3218x FLASH 766696 766692 -4 -0.0
RAM 50316 50308 -8 -0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 767728 767724 -4 -0.0
RAM 40608 40600 -8 -0.0
light-app-ota-shell-factory-data tl7218x FLASH 756184 756180 -4 -0.0
773806 773802 -4 -0.0
RAM 97736 97728 -8 -0.0
109488 109480 -8 -0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 687258 687254 -4 -0.0
703156 703152 -4 -0.0
RAM 51844 51836 -8 -0.0
62876 62868 -8 -0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 715708 715704 -4 -0.0
741110 741106 -4 -0.0
RAM 73656 73648 -8 -0.0
86048 86040 -8 -0.0
light-switch-app-ota-shell-factory-data tl3218x_retention FLASH 713048 713044 -4 -0.0
RAM 37292 37284 -8 -0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 604534 604530 -4 -0.0
600666 600662 -4 -0.0
RAM 106984 106976 -8 -0.0
120260 120252 -8 -0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 791238 791238 0 0.0
809130 809130 0 0.0
RAM 96584 96576 -8 -0.0
107756 107748 -8 -0.0
tizen all-clusters-app arm unknown 5292 5292 0 0.0
FLASH 1821488 1821484 -4 -0.0
RAM 97224 97216 -8 -0.0
chip-tool-ubsan arm unknown 20804 20804 0 0.0
FLASH 21046446 21046214 -232 -0.0
RAM 9171816 9171744 -72 -0.0

@vijs vijs force-pushed the feature/38544 branch from ccfdc6d to f21465d Compare May 30, 2025 14:42
Copy link

github-actions bot commented May 30, 2025

PR #38994: Size comparison from 04a8c79 to f21465d

Increases above 0.2%:

platform target config section 04a8c798 f21465d change % change
telink lighting-app-ota-factory-data tlsr9118bdk40d FLASH 600610 604478 3868 0.6
Full report (75 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 04a8c798 f21465d change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1102228 1102228 0 0.0
RAM 179058 179058 0 0.0
bl702 lighting-app bl702+eth FLASH 655302 655302 0 0.0
RAM 135009 135009 0 0.0
bl702+wifi FLASH 832824 832824 0 0.0
RAM 124573 124573 0 0.0
bl706+mfd+rpc+littlefs FLASH 1065376 1065376 0 0.0
RAM 117405 117405 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 894922 894922 0 0.0
RAM 105708 105708 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 978646 978646 0 0.0
RAM 109892 109892 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 820484 820484 0 0.0
RAM 120224 120224 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 832088 832088 0 0.0
RAM 125376 125376 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 777608 777608 0 0.0
RAM 113780 113780 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 761940 761940 0 0.0
RAM 113988 113988 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 548158 548158 0 0.0
RAM 205192 205192 0 0.0
lock CC3235SF_LAUNCHXL FLASH 581606 581606 0 0.0
RAM 205384 205384 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 662397 662397 0 0.0
RAM 77488 77488 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 682249 682249 0 0.0
RAM 80128 80128 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 682249 682249 0 0.0
RAM 80128 80128 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 639181 639181 0 0.0
RAM 72556 72556 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 623789 623789 0 0.0
RAM 73800 73800 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 643425 643425 0 0.0
RAM 76352 76352 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 643425 643425 0 0.0
RAM 76352 76352 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 644709 644709 0 0.0
RAM 76800 76800 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 664425 664425 0 0.0
RAM 79352 79352 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 664425 664425 0 0.0
RAM 79352 79352 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 619377 619377 0 0.0
RAM 70912 70912 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 639229 639229 0 0.0
RAM 73544 73544 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 639229 639229 0 0.0
RAM 73544 73544 0 0.0
efr32 lock-app BRD4187C FLASH 946764 946764 0 0.0
RAM 132036 132036 0 0.0
BRD4338a FLASH 776024 776024 0 0.0
RAM 173256 173256 0 0.0
window-app BRD4187C FLASH 1039688 1039680 -8 -0.0
RAM 128164 128164 0 0.0
esp32 all-clusters-app c3devkit DRAM 103544 103544 0 0.0
FLASH 1809908 1809908 0 0.0
IRAM 83862 83862 0 0.0
m5stack DRAM 122412 122412 0 0.0
FLASH 1774586 1774586 0 0.0
IRAM 117071 117071 0 0.0
linux air-purifier-app debug unknown 4848 4848 0 0.0
FLASH 2786478 2786478 0 0.0
RAM 117016 117016 0 0.0
all-clusters-app debug unknown 5664 5664 0 0.0
FLASH 6385272 6385272 0 0.0
RAM 537568 537568 0 0.0
all-clusters-minimal-app debug unknown 5528 5528 0 0.0
FLASH 5468302 5468302 0 0.0
RAM 227976 227976 0 0.0
bridge-app debug unknown 5560 5560 0 0.0
FLASH 4800812 4800812 0 0.0
RAM 207632 207632 0 0.0
camera-app debug unknown 8864 8864 0 0.0
FLASH 6910235 6910235 0 0.0
RAM 228888 228888 0 0.0
camera-controller debug unknown 9168 9168 0 0.0
FLASH 14264891 14264891 0 0.0
RAM 657256 657256 0 0.0
chip-tool debug unknown 6248 6248 0 0.0
FLASH 14638073 14637847 -226 -0.0
RAM 650736 650736 0 0.0
chip-tool-ipv6only arm64 unknown 40440 40440 0 0.0
FLASH 12609908 12609748 -160 -0.0
RAM 697080 697080 0 0.0
fabric-admin debug unknown 5928 5928 0 0.0
FLASH 12709641 12709415 -226 -0.0
RAM 650136 650136 0 0.0
fabric-bridge-app debug unknown 4808 4808 0 0.0
FLASH 4586716 4586716 0 0.0
RAM 193344 193344 0 0.0
fabric-sync debug unknown 5064 5064 0 0.0
FLASH 5733781 5733797 16 0.0
RAM 490016 490016 0 0.0
lighting-app debug+rpc+ui unknown 6272 6272 0 0.0
FLASH 5649889 5649889 0 0.0
RAM 209864 209864 0 0.0
lock-app debug unknown 5496 5496 0 0.0
FLASH 4835284 4835284 0 0.0
RAM 197096 197096 0 0.0
ota-provider-app debug unknown 4848 4848 0 0.0
FLASH 4438586 4438586 0 0.0
RAM 185968 185968 0 0.0
ota-requestor-app debug unknown 4728 4728 0 0.0
FLASH 4508024 4508024 0 0.0
RAM 188600 188600 0 0.0
shell debug unknown 4256 4256 0 0.0
FLASH 3082940 3082940 0 0.0
RAM 151080 151080 0 0.0
thermostat-no-ble arm64 unknown 9768 9768 0 0.0
FLASH 4232844 4232844 0 0.0
RAM 233416 233416 0 0.0
tv-app debug unknown 5832 5832 0 0.0
FLASH 6098693 6098693 0 0.0
RAM 614248 614248 0 0.0
tv-casting-app debug unknown 5336 5336 0 0.0
FLASH 12786813 12786813 0 0.0
RAM 767120 767120 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 921812 921812 0 0.0
RAM 167468 167468 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 913072 913072 0 0.0
RAM 145712 145712 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 858988 858988 0 0.0
RAM 141095 141095 0 0.0
nxp contact k32w0+release FLASH 592200 592200 0 0.0
RAM 72856 72856 0 0.0
mcxw71+release FLASH 624952 624952 0 0.0
RAM 63196 63196 0 0.0
light k32w0+release FLASH 618276 618276 0 0.0
RAM 72152 72152 0 0.0
k32w1+release FLASH 709488 709488 0 0.0
RAM 72052 72052 0 0.0
lock mcxw71+release FLASH 776120 776120 0 0.0
RAM 67612 67612 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1671556 1671556 0 0.0
RAM 212464 212464 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1575892 1575892 0 0.0
RAM 208512 208512 0 0.0
light cy8ckit_062s2_43012 FLASH 1448340 1448340 0 0.0
RAM 197240 197240 0 0.0
lock cy8ckit_062s2_43012 FLASH 1480620 1480620 0 0.0
RAM 224952 224952 0 0.0
qpg lighting-app qpg6105+debug FLASH 667204 667204 0 0.0
RAM 105180 105180 0 0.0
lock-app qpg6105+debug FLASH 627216 627216 0 0.0
RAM 99808 99808 0 0.0
stm32 light STM32WB5MM-DK FLASH 464932 464932 0 0.0
RAM 141424 141424 0 0.0
telink bridge-app tl7218x FLASH 694202 677446 -16756 -2.4
694202 694202 0 0.0
RAM 102100 90960 -11140 -10.9
102100 102100 0 0.0
light-app-ota-compress-lzma-factory-data tl3218x FLASH 766640 766640 0 0.0
RAM 50252 50252 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 767670 767670 0 0.0
RAM 40544 40544 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 773748 756128 -17620 -2.3
773748 773748 0 0.0
RAM 109424 97672 -11752 -10.7
109424 109424 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 703108 687210 -15898 -2.3
703108 703108 0 0.0
RAM 62812 51780 -11032 -17.6
62812 62812 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 741062 715660 -25402 -3.4
741062 741062 0 0.0
RAM 85984 73592 -12392 -14.4
85984 85984 0 0.0
light-switch-app-ota-shell-factory-data tl3218x_retention FLASH 712988 712988 0 0.0
RAM 37228 37228 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 600610 604478 3868 0.6
600610 600610 0 0.0
RAM 120196 106920 -13276 -11.0
120196 120196 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 809086 791198 -17888 -2.2
809086 809090 4 0.0
RAM 107692 96520 -11172 -10.4
107692 107692 0 0.0
tizen all-clusters-app arm unknown 5292 5292 0 0.0
FLASH 1819708 1819708 0 0.0
RAM 97160 97160 0 0.0
chip-tool-ubsan arm unknown 20644 20644 0 0.0
FLASH 20908062 20907918 -144 -0.0
RAM 9100432 9100416 -16 -0.0

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this have to do with the mDNS advertisement?

I'm pretty confused now. I asked why CommissioningWindowManager had dead code and this PR adds not only code in CommissioningWindowManager to call SetJCM but also a whole bunch of other unrelated stuff.

What I would have expected here are PRs as follows:

  1. Core PR to enable advertising thew new keys, in lib/dnssd.
  2. A PR on top of that to add IsJointFabricEnabled to the provider API (no impl yet) and then update app/server/Dnssd.cpp.
  3. The changes to CommissioningWindowManager.
  4. All the other bits as desired (those are not core code at that point, and I don't need to look at them).

The comments above say "to simplify review", but this very much does not simplify review. There is no way I can approve this PR, because I am not going to read anything under examples/jf-admin-app, sorry.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I initially planned to keep the PR small, but due to requests for unit tests and concerns about unused methods (potential dead code - #38994 (comment)), I've included the implementation of OpenJointCommissioningWindow() in this PR. Adding the OJCW command to the SDK and example JF apps allowed us to verify the accuracy of the mDNS advertisement and JF TXT key, remove several TODO comments, and include a functional Testing subsection in the PR description.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again: SetJCM did not need to exist until something used it, sure. And in general, there don't need to be any changes to CommissioningWindowManager to make the changes to lib/dnssd, and minimal changes to CommissioningWindowManager to make the changes to app/server/Dnssd.cpp.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Boris, this PR has been refactored to align with your recommendation. It now focuses solely on implementing mDNS advertisement, with the remaining changes to be addressed in subsequent PRs.

@@ -31,6 +32,9 @@ class DLL_EXPORT CommissioningModeProvider
{
public:
virtual Dnssd::CommissioningMode GetCommissioningMode() const = 0;
#if CHIP_DEVICE_CONFIG_ENABLE_JOINT_FABRIC
virtual bool IsJointFabricEnabled() = 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, and for the separate PR that will add this: having conditionally defined bits of vtables is a good recipe for mismatched vtable layouts and security bugs. Should generally be avoided.

Separately, this new virtual method needs documentation.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the feedback — I’ll address it in the next update.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the feedback. Based on your recommendation, this PR has been updated to focus exclusively on implementing mDNS advertisement. A follow-up PR will handle the OJCW functionalities and address the comments regarding unit tests. Closing out this thread for now.

Copy link

github-actions bot commented Jun 2, 2025

PR #38994: Size comparison from 871b434 to 717b88c

Full report (75 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 871b434 717b88c change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1102196 1102196 0 0.0
RAM 179058 179058 0 0.0
bl702 lighting-app bl702+eth FLASH 655302 655302 0 0.0
RAM 135009 135009 0 0.0
bl702+wifi FLASH 832792 832792 0 0.0
RAM 124573 124573 0 0.0
bl706+mfd+rpc+littlefs FLASH 1065480 1065480 0 0.0
RAM 117405 117405 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 895026 895026 0 0.0
RAM 105708 105708 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 978750 978750 0 0.0
RAM 109892 109892 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 820516 820516 0 0.0
RAM 120224 120224 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 832120 832120 0 0.0
RAM 125376 125376 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 777640 777640 0 0.0
RAM 113780 113780 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 761956 761956 0 0.0
RAM 113988 113988 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 548158 548158 0 0.0
RAM 205192 205192 0 0.0
lock CC3235SF_LAUNCHXL FLASH 581606 581606 0 0.0
RAM 205384 205384 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 662421 662421 0 0.0
RAM 77488 77488 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 682273 682273 0 0.0
RAM 80128 80128 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 682273 682273 0 0.0
RAM 80128 80128 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 639205 639205 0 0.0
RAM 72556 72556 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 623813 623813 0 0.0
RAM 73800 73800 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 643449 643449 0 0.0
RAM 76352 76352 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 643449 643449 0 0.0
RAM 76352 76352 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 644733 644733 0 0.0
RAM 76800 76800 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 664449 664449 0 0.0
RAM 79352 79352 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 664449 664449 0 0.0
RAM 79352 79352 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 619401 619401 0 0.0
RAM 70912 70912 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 639253 639253 0 0.0
RAM 73544 73544 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 639253 639253 0 0.0
RAM 73544 73544 0 0.0
efr32 lock-app BRD4187C FLASH 946796 946796 0 0.0
RAM 132036 132036 0 0.0
BRD4338a FLASH 776024 776024 0 0.0
RAM 173256 173256 0 0.0
window-app BRD4187C FLASH 1039688 1039680 -8 -0.0
RAM 128164 128164 0 0.0
esp32 all-clusters-app c3devkit DRAM 103544 103544 0 0.0
FLASH 1809908 1809908 0 0.0
IRAM 83862 83862 0 0.0
m5stack DRAM 122412 122412 0 0.0
FLASH 1774554 1774554 0 0.0
IRAM 117071 117071 0 0.0
linux air-purifier-app debug unknown 4848 4848 0 0.0
FLASH 2786594 2786594 0 0.0
RAM 117016 117016 0 0.0
all-clusters-app debug unknown 5664 5664 0 0.0
FLASH 6385388 6385388 0 0.0
RAM 537568 537568 0 0.0
all-clusters-minimal-app debug unknown 5528 5528 0 0.0
FLASH 5468450 5468450 0 0.0
RAM 227976 227976 0 0.0
bridge-app debug unknown 5560 5560 0 0.0
FLASH 4800928 4800928 0 0.0
RAM 207632 207632 0 0.0
camera-app debug unknown 8864 8864 0 0.0
FLASH 6910347 6910347 0 0.0
RAM 228888 228888 0 0.0
camera-controller debug unknown 9168 9168 0 0.0
FLASH 14264891 14264891 0 0.0
RAM 657256 657256 0 0.0
chip-tool debug unknown 6248 6248 0 0.0
FLASH 14638073 14637847 -226 -0.0
RAM 650736 650736 0 0.0
chip-tool-ipv6only arm64 unknown 40440 40440 0 0.0
FLASH 12609908 12609748 -160 -0.0
RAM 697080 697080 0 0.0
fabric-admin debug unknown 5928 5928 0 0.0
FLASH 12709641 12709415 -226 -0.0
RAM 650136 650136 0 0.0
fabric-bridge-app debug unknown 4808 4808 0 0.0
FLASH 4586832 4586832 0 0.0
RAM 193344 193344 0 0.0
fabric-sync debug unknown 5064 5064 0 0.0
FLASH 5733749 5733781 32 0.0
RAM 490016 490016 0 0.0
lighting-app debug+rpc+ui unknown 6272 6272 0 0.0
FLASH 5650049 5650049 0 0.0
RAM 209864 209864 0 0.0
lock-app debug unknown 5496 5496 0 0.0
FLASH 4835230 4835230 0 0.0
RAM 197096 197096 0 0.0
ota-provider-app debug unknown 4848 4848 0 0.0
FLASH 4438732 4438732 0 0.0
RAM 185968 185968 0 0.0
ota-requestor-app debug unknown 4728 4728 0 0.0
FLASH 4508204 4508204 0 0.0
RAM 188600 188600 0 0.0
shell debug unknown 4256 4256 0 0.0
FLASH 3082908 3082908 0 0.0
RAM 151080 151080 0 0.0
thermostat-no-ble arm64 unknown 9784 9784 0 0.0
FLASH 4232924 4232924 0 0.0
RAM 233416 233416 0 0.0
tv-app debug unknown 5832 5832 0 0.0
FLASH 6098645 6098645 0 0.0
RAM 614248 614248 0 0.0
tv-casting-app debug unknown 5336 5336 0 0.0
FLASH 12786957 12786957 0 0.0
RAM 767120 767120 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 921836 921836 0 0.0
RAM 167468 167468 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 913072 913072 0 0.0
RAM 145712 145712 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 859012 859012 0 0.0
RAM 141095 141095 0 0.0
nxp contact k32w0+release FLASH 592216 592216 0 0.0
RAM 72856 72856 0 0.0
mcxw71+release FLASH 624976 624976 0 0.0
RAM 63196 63196 0 0.0
light k32w0+release FLASH 618308 618308 0 0.0
RAM 72152 72152 0 0.0
k32w1+release FLASH 709512 709512 0 0.0
RAM 72052 72052 0 0.0
lock mcxw71+release FLASH 776144 776144 0 0.0
RAM 67612 67612 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1671540 1671540 0 0.0
RAM 212464 212464 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1575892 1575892 0 0.0
RAM 208512 208512 0 0.0
light cy8ckit_062s2_43012 FLASH 1448340 1448340 0 0.0
RAM 197240 197240 0 0.0
lock cy8ckit_062s2_43012 FLASH 1480620 1480620 0 0.0
RAM 224952 224952 0 0.0
qpg lighting-app qpg6105+debug FLASH 667220 667220 0 0.0
RAM 105180 105180 0 0.0
lock-app qpg6105+debug FLASH 627248 627248 0 0.0
RAM 99808 99808 0 0.0
stm32 light STM32WB5MM-DK FLASH 464956 464956 0 0.0
RAM 141424 141424 0 0.0
telink bridge-app tl7218x FLASH 677444 677444 0 0.0
694200 694200 0 0.0
RAM 90960 90960 0 0.0
102100 102100 0 0.0
light-app-ota-compress-lzma-factory-data tl3218x FLASH 766638 766638 0 0.0
RAM 50252 50252 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 767668 767668 0 0.0
RAM 40544 40544 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 756126 756126 0 0.0
773746 773746 0 0.0
RAM 97672 97672 0 0.0
109424 109424 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 687208 687208 0 0.0
703106 703106 0 0.0
RAM 51780 51780 0 0.0
62812 62812 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 715658 715658 0 0.0
741060 741060 0 0.0
RAM 73592 73592 0 0.0
85984 85984 0 0.0
light-switch-app-ota-shell-factory-data tl3218x_retention FLASH 712986 712986 0 0.0
RAM 37228 37228 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 604478 604478 0 0.0
600610 600610 0 0.0
RAM 106920 106920 0 0.0
120196 120196 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 791192 791196 4 0.0
809084 809088 4 0.0
RAM 96520 96520 0 0.0
107692 107692 0 0.0
tizen all-clusters-app arm unknown 5300 5300 0 0.0
FLASH 1819732 1819732 0 0.0
RAM 97160 97160 0 0.0
chip-tool-ubsan arm unknown 20644 20644 0 0.0
FLASH 20908062 20907918 -144 -0.0
RAM 9100432 9100416 -16 -0.0

@vijs vijs force-pushed the feature/38544 branch from 717b88c to 2d9ed24 Compare June 3, 2025 23:25
@vijs vijs changed the title [E2E][JF] Implemented JCM mDNS advertisement and OJCW [E2E][JF] Implemented JCM mDNS advertisement Jun 3, 2025
Copy link

github-actions bot commented Jun 3, 2025

PR #38994: Size comparison from 2eabb28 to 2d9ed24

Full report (11 builds for cc13x4_26x4, cc32xx, qpg, stm32, tizen)
platform target config section 2eabb28 2d9ed24 change % change
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 820516 820516 0 0.0
RAM 120224 120224 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 832120 832120 0 0.0
RAM 125376 125376 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 777640 777640 0 0.0
RAM 113780 113780 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 761956 761956 0 0.0
RAM 113988 113988 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 548158 548158 0 0.0
RAM 205192 205192 0 0.0
lock CC3235SF_LAUNCHXL FLASH 581606 581606 0 0.0
RAM 205384 205384 0 0.0
qpg lighting-app qpg6105+debug FLASH 667212 667212 0 0.0
RAM 105196 105196 0 0.0
lock-app qpg6105+debug FLASH 627280 627280 0 0.0
RAM 99816 99816 0 0.0
stm32 light STM32WB5MM-DK FLASH 464956 464956 0 0.0
RAM 141424 141424 0 0.0
tizen all-clusters-app arm unknown 5300 5300 0 0.0
FLASH 1819740 1819740 0 0.0
RAM 97160 97160 0 0.0
chip-tool-ubsan arm unknown 20644 20644 0 0.0
FLASH 20908206 20908206 0 0.0
RAM 9100368 9100368 0 0.0

@vijs vijs self-assigned this Jun 3, 2025
@vijs vijs force-pushed the feature/38544 branch from 2d9ed24 to 94a2e60 Compare June 3, 2025 23:49
Copy link

github-actions bot commented Jun 4, 2025

PR #38994: Size comparison from 2eabb28 to 94a2e60

Full report (72 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 2eabb28 94a2e60 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1102196 1102196 0 0.0
RAM 179058 179058 0 0.0
bl702 lighting-app bl702+eth FLASH 655302 655302 0 0.0
RAM 135009 135009 0 0.0
bl702+wifi FLASH 832792 832792 0 0.0
RAM 124573 124573 0 0.0
bl706+mfd+rpc+littlefs FLASH 1065480 1065480 0 0.0
RAM 117405 117405 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 895026 895026 0 0.0
RAM 105708 105708 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 978750 978750 0 0.0
RAM 109892 109892 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 820516 820516 0 0.0
RAM 120224 120224 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 832120 832120 0 0.0
RAM 125376 125376 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 777640 777640 0 0.0
RAM 113780 113780 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 761956 761956 0 0.0
RAM 113988 113988 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 548158 548158 0 0.0
RAM 205192 205192 0 0.0
lock CC3235SF_LAUNCHXL FLASH 581606 581606 0 0.0
RAM 205384 205384 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 662621 662621 0 0.0
RAM 77504 77504 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 682465 682465 0 0.0
RAM 80144 80144 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 682465 682465 0 0.0
RAM 80144 80144 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 639405 639405 0 0.0
RAM 72572 72572 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 623989 623989 0 0.0
RAM 73816 73816 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 643625 643625 0 0.0
RAM 76368 76368 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 643625 643625 0 0.0
RAM 76368 76368 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 644909 644909 0 0.0
RAM 76816 76816 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 664625 664625 0 0.0
RAM 79368 79368 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 664625 664625 0 0.0
RAM 79368 79368 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 619577 619577 0 0.0
RAM 70928 70928 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 639429 639429 0 0.0
RAM 73560 73560 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 639429 639429 0 0.0
RAM 73560 73560 0 0.0
efr32 lock-app BRD4187C FLASH 946796 946796 0 0.0
RAM 132036 132036 0 0.0
BRD4338a FLASH 776008 776008 0 0.0
RAM 173256 173256 0 0.0
window-app BRD4187C FLASH 1039656 1039648 -8 -0.0
RAM 128164 128164 0 0.0
esp32 all-clusters-app c3devkit DRAM 103552 103552 0 0.0
FLASH 1809620 1809620 0 0.0
IRAM 83862 83862 0 0.0
m5stack DRAM 122412 122412 0 0.0
FLASH 1774486 1774486 0 0.0
IRAM 117071 117071 0 0.0
linux air-purifier-app debug unknown 4848 4848 0 0.0
FLASH 2786670 2786670 0 0.0
RAM 117016 117016 0 0.0
all-clusters-app debug unknown 5664 5664 0 0.0
FLASH 6385496 6385496 0 0.0
RAM 537568 537568 0 0.0
all-clusters-minimal-app debug unknown 5528 5528 0 0.0
FLASH 5468558 5468558 0 0.0
RAM 227976 227976 0 0.0
bridge-app debug unknown 5560 5560 0 0.0
FLASH 4801036 4801036 0 0.0
RAM 207632 207632 0 0.0
camera-app debug unknown 8864 8864 0 0.0
FLASH 6899867 6899867 0 0.0
RAM 228888 228888 0 0.0
camera-controller debug unknown 9168 9168 0 0.0
FLASH 14277019 14277019 0 0.0
RAM 657288 657288 0 0.0
chip-tool debug unknown 6248 6248 0 0.0
FLASH 14638181 14638181 0 0.0
RAM 650736 650736 0 0.0
chip-tool-ipv6only arm64 unknown 40440 40440 0 0.0
FLASH 12609844 12609844 0 0.0
RAM 697080 697080 0 0.0
fabric-admin debug unknown 5928 5928 0 0.0
FLASH 12709749 12709749 0 0.0
RAM 650136 650136 0 0.0
fabric-bridge-app debug unknown 4808 4808 0 0.0
FLASH 4586940 4586940 0 0.0
RAM 193344 193344 0 0.0
fabric-sync debug unknown 5064 5064 0 0.0
FLASH 5733861 5733861 0 0.0
RAM 490016 490016 0 0.0
lighting-app debug+rpc+ui unknown 6272 6272 0 0.0
FLASH 5650305 5650305 0 0.0
RAM 209864 209864 0 0.0
lock-app debug unknown 5496 5496 0 0.0
FLASH 4835306 4835306 0 0.0
RAM 197096 197096 0 0.0
ota-provider-app debug unknown 4848 4848 0 0.0
FLASH 4438808 4438808 0 0.0
RAM 185968 185968 0 0.0
ota-requestor-app debug unknown 4728 4728 0 0.0
FLASH 4508280 4508280 0 0.0
RAM 188600 188600 0 0.0
shell debug unknown 4256 4256 0 0.0
FLASH 3083020 3083020 0 0.0
RAM 151080 151080 0 0.0
thermostat-no-ble arm64 unknown 9784 9784 0 0.0
FLASH 4232860 4232860 0 0.0
RAM 233416 233416 0 0.0
tv-app debug unknown 5832 5832 0 0.0
FLASH 6098725 6098725 0 0.0
RAM 614248 614248 0 0.0
tv-casting-app debug unknown 5336 5336 0 0.0
FLASH 12787069 12787069 0 0.0
RAM 767120 767120 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 921836 921836 0 0.0
RAM 167468 167468 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 913072 913072 0 0.0
RAM 145712 145712 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 859012 859012 0 0.0
RAM 141095 141095 0 0.0
nxp contact mcxw71+release FLASH 624984 624984 0 0.0
RAM 63196 63196 0 0.0
lock mcxw71+release FLASH 776064 776064 0 0.0
RAM 67860 67860 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1671524 1671524 0 0.0
RAM 212464 212464 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1575876 1575876 0 0.0
RAM 208512 208512 0 0.0
light cy8ckit_062s2_43012 FLASH 1448308 1448308 0 0.0
RAM 197240 197240 0 0.0
lock cy8ckit_062s2_43012 FLASH 1480588 1480588 0 0.0
RAM 224952 224952 0 0.0
qpg lighting-app qpg6105+debug FLASH 667212 667212 0 0.0
RAM 105196 105196 0 0.0
lock-app qpg6105+debug FLASH 627280 627280 0 0.0
RAM 99816 99816 0 0.0
stm32 light STM32WB5MM-DK FLASH 464956 464956 0 0.0
RAM 141424 141424 0 0.0
telink bridge-app tl7218x FLASH 677444 677444 0 0.0
694200 694200 0 0.0
RAM 90960 90960 0 0.0
102100 102100 0 0.0
light-app-ota-compress-lzma-factory-data tl3218x FLASH 766638 766638 0 0.0
RAM 50252 50252 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 767668 767668 0 0.0
RAM 40544 40544 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 756126 756126 0 0.0
773746 773746 0 0.0
RAM 97672 97672 0 0.0
109424 109424 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 687208 687208 0 0.0
703106 703106 0 0.0
RAM 51780 51780 0 0.0
62812 62812 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 715658 715658 0 0.0
741060 741060 0 0.0
RAM 73592 73592 0 0.0
85984 85984 0 0.0
light-switch-app-ota-shell-factory-data tl3218x_retention FLASH 712986 712986 0 0.0
RAM 37228 37228 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 604464 604464 0 0.0
600610 600610 0 0.0
RAM 106920 106920 0 0.0
120196 120196 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 791192 791196 4 0.0
809084 809088 4 0.0
RAM 96520 96520 0 0.0
107692 107692 0 0.0
tizen all-clusters-app arm unknown 5300 5300 0 0.0
FLASH 1819740 1819740 0 0.0
RAM 97160 97160 0 0.0
chip-tool-ubsan arm unknown 20644 20644 0 0.0
FLASH 20908206 20908206 0 0.0
RAM 9100368 9100368 0 0.0

@robertfarnum robertfarnum self-requested a review June 4, 2025 12:12
Copy link
Contributor

@robertfarnum robertfarnum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reduced scope PR looks good, with addition comments to be addressed in a subsequent PR.

  • #ifdef of virtual method
  • _CM advertisement

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems completely unrelated to this PR. Please take it out and put it wherever it's supposed to go.

Comment on lines +55 to +58
kAvailable, // This device is capable of acting as a Joint Fabric Administrator.
kAdministrator, // This device is acting as a Joint Fabric Administrator.
kAnchor, // This device is acting as a Joint Fabric Anchor Administrator.
kDatastore // This device is acting as a Joint Fabric Datastore.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are not mutually exclusive in the spec, right? So shouldn't the values here be 1, 2, 4, 8, per spec?

I don't understand how you represent the spec "14" case otherwise.

@@ -204,6 +215,15 @@ class CommissionAdvertisingParameters : public BaseAdvertisingParams<CommissionA
}
CommissioningMode GetCommissioningMode() const { return mCommissioningMode; }

#if CHIP_DEVICE_CONFIG_ENABLE_JOINT_FABRIC
CommissionAdvertisingParameters & SetJointFabricMode(std::optional<JointFabricMode> mode)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should take optional<BitFlags<JointFabricMode>>, I would think, given that multiple flags can be set.

Because for example 14 (an example given in the spec) is not a valid value of JointFabricMode the way it's defined here.

At that point presumably you don't even need the optional, in that you can just use empty BitFlags to represent "none of the bits are set, don't list the key".

@@ -878,6 +881,14 @@ FullQName AdvertiserMinMdns::GetCommissioningTxtEntries(const CommissionAdvertis
snprintf(txtPairingInstr, sizeof(txtPairingInstr), "PI=%s", *pairingInstruction);
txtFields[numTxtFields++] = txtPairingInstr;
}

#if CHIP_DEVICE_CONFIG_ENABLE_JOINT_FABRIC
if (const auto & jointFabricMode = params.GetJointFabricMode(); jointFabricMode.has_value())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So here you could do (if GetJointFabricMode returns BitFlags<JointFabricMode>):

Suggested change
if (const auto & jointFabricMode = params.GetJointFabricMode(); jointFabricMode.has_value())
if (const auto & jointFabricMode = params.GetJointFabricMode(); jointFabricMode.HasAny())

and then print jointFabricMode.Raw() into the string.

@@ -198,6 +198,13 @@ CHIP_ERROR CopyTextRecordValue(char * buffer, size_t bufferLen, CommissioningMod
return CopyTextRecordValue(buffer, bufferLen, static_cast<uint16_t>(value));
}

#if CHIP_DEVICE_CONFIG_ENABLE_JOINT_FABRIC
CHIP_ERROR CopyTextRecordValue(char * buffer, size_t bufferLen, JointFabricMode value)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, BitFlags to represent the flags, and Raw() to get an integer.

@@ -161,6 +161,13 @@ uint8_t GetCommissioningMode(const ByteSpan & value)
return MakeU8FromAsciiDecimal(value);
}

#if CHIP_DEVICE_CONFIG_ENABLE_JOINT_FABRIC
uint8_t GetJointFabricMode(const ByteSpan & value)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably return BitFlags<JointFabricMode> here too? Like:

    return BitFlags<JointFabricMode>(MakeU8FromAsciiDecimal(value));

or so.

@@ -234,6 +235,9 @@ struct CommissionNodeData : public CommonResolutionData
char instanceName[Commission::kInstanceNameMaxLength + 1] = {};
char deviceName[kMaxDeviceNameLen + 1] = {};
char pairingInstruction[kMaxPairingInstructionLen + 1] = {};
#if CHIP_DEVICE_CONFIG_ENABLE_JOINT_FABRIC
uint8_t jointFabricMode = 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BitFlags, please.

@@ -48,6 +49,16 @@ enum class CommissioningMode
kEnabledEnhanced // Enhanced Commissioning Mode, CM=2 in DNS-SD key/value pairs
};

#if CHIP_DEVICE_CONFIG_ENABLE_JOINT_FABRIC
enum class JointFabricMode
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
enum class JointFabricMode
enum class JointFabricMode : uint8_t

@andy31415
Copy link
Contributor

@vijs for ninja -C out/host/ src/lib/dnssd/tests:tests_run ... please include coverage information.

we have https://github.com/project-chip/connectedhomeip/blob/master/scripts/build_coverage.sh, although that covers a lot more than just the dnssd files (it is a full test run).

What I need to get confidence in is "this code is tested" and to what extent it is. Please make the summary informative: this is not a "checklist item because we like bureaucracy" but rather we want to ensure that changes that go in the SDK are solid and well tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[E2E][JF] Do not save mAdministratorFabricIndex in the JF Datastore
5 participants